package com.neuedu.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.dao.Goods_typeDao;
import com.neuedu.model.Goods_type;
import com.neuedu.service.Goods_typeService;

@Service
public class Goods_typeServiceImpl implements Goods_typeService {

	// 依赖注入
	@Autowired
	private Goods_typeDao goods_typeDao;
		
	public void setGoods_typeDao(Goods_typeDao goods_typeDao) {
		this.goods_typeDao = goods_typeDao;
	}
	
	@Override
	public int countGoods_type() {
		// TODO Auto-generated method stub
		return goods_typeDao.countGoods_type();
	}

	@Override
	public List<Goods_type> findAll(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return goods_typeDao.findAll(map);
	}

	@Override
	public int addGoods_type(Goods_type u) {
		// TODO Auto-generated method stub
		return goods_typeDao.addGoods_type(u);
	}

	@Override
	public int updateGoods_type(Goods_type u) {
		// TODO Auto-generated method stub
		return goods_typeDao.updateGoods_type(u);
	}

	@Override
	public int deleteGoods_type(int id) {
		// TODO Auto-generated method stub
		return goods_typeDao.deleteGoods_type(id);
	}

	@Override
	public List<Goods_type> findList() {
		// TODO Auto-generated method stub
		return goods_typeDao.findList();
	}

}
